import request from '@/utils/axios'
var qs = require('qs');

// 获取活动管理列表
export function getActivityList(params) {
  return request({
    url: '/activityManage/activityList',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 获取详情列表
export function getDetailList(params) {
  return request({
    url: '/activityManage/activityDetail',
    method: 'get',
    params: params
  });
}
// 添加活动 获取关联游戏列表
export function getAddactData(params) {
  return request({
    url: '/activityManage/add',
    method: 'get',
    params: params
  });
}
// 添加活动 提交表单
export function submitAddactivity(params) {
  return request({
    url: '/activityManage/addPost',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 修改活动时间
export function modifyTime(params) {
  return request({
    url: '/activityManage/modifyActivityTime',
    method: 'get',
    params
  });
}
// 优惠券补仓
export function couponSupply(params) {
  return request({
    url: '/activityManage/activityCouponSupply',
    method: 'get',
    params
  });
}
// 上线活动
export function activityOnline(params) {
  return request({
    url: '/activityManage/activityOnline',
    method: 'get',
    params
  });
}
// 下线活动
export function activityOffline(params) {
  return request({
    url: '/activityManage/activityOffline',
    method: 'get',
    params
  });
}